<?php
/**
* Under construction
*/
final class HCacheControl
{

	static function buildActionCache($action_name = '', $action_result)
	{
		if (!is_string($action_result) || trim($action_result) == '') { return false; }
		$regxp = "/[\<][\/]?hypnophp[\:].*[\>]/i";
		if (preg_match_all($regxp, $action_result, $match, PREG_OFFSET_CAPTURE)) {
			return $match;
		}
		return false;
	}

	static function writeActionCache($controller_name = '', $action_name = '', $action_result)
	{
		$file_name = $controller_name . '.' . $action_name . '.php';
		return '';
	}

	static function readActionCache($controller_name = '', $action_name = '')
	{
		return '';
	}

}